<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
	<title>{if isset($pagetitle)}{$pagetitle} - {/if}{$Main->config_value('install_name')}</title>
	<meta http-equiv="content-type" content="text/html;charset=utf-8" />
	<meta name="generator" content="cf4" />
	<link rel='stylesheet' href='{$smarty.const.WEB_PATH}/public/css/reset.css' />
	<link rel='stylesheet' href='{$smarty.const.WEB_PATH}/public/css/style_0.css' />
	<script type='text/javascript' src='{$smarty.const.WEB_PATH}/public/js/jquery.js'></script>
	<script type='text/javascript' src='{$smarty.const.WEB_PATH}/public/js/cufon.js'></script>
	<script type='text/javascript' src='{$smarty.const.WEB_PATH}/public/js/Droid_Sans_400.font.js'></script>
	<script type='text/javascript' src='{$smarty.const.WEB_PATH}/public/js/dropdown.js'></script>
	<script type='text/javascript' src='{$smarty.const.WEB_PATH}/public/js/ui.js'></script>
</head>
<body>
	<div id='top'>
		<table width="100%"><!-- tableless didn't work in IE7. -->
			<tr>
				<td>
					<a href='{$smarty.const.WEB_PATH}'><img src='{$smarty.const.WEB_PATH}/public/img/logo.png' alt='Logo' /></a>
				</td>
				<td>
					<div id='userinfobox'>
						{if isset($smarty.session.cf_uid)}
							{include file="$style_tpl_path_relative/userlinks.tpl"}
						{else}
							<img src='{$smarty.const.WEB_PATH}/public/img/icons/silk/user.png' alt='' />
							{$Lang->getFormattedKey("global.user.guest")} - 
								<a href='{$smarty.const.WEB_PATH}/index.php?app=global&controller=login'>{$Lang->getFormattedKey("global.user.login")}</a> &middot; <a href='{$smarty.const.WEB_PATH}/index.php?app=global&controller=register'>{$Lang->getFormattedKey("global.user.register")}</a>
						{/if}
					</div>
				</td>
			</tr>
		</table>
	</div>
	<ul id="navmenu">
		{foreach from=$menuarray key=id item=i}
			<li id="nav_{$id}" class="navmenu-item{if $i.active == true} active{/if}">
				<img src='{$smarty.const.WEB_PATH}/public/img/icons/{$i.icon}' alt='{$i.title}' />
				<a href='{$smarty.const.WEB_PATH}/index.php?app={$i.app}&controller={$i.controller}{$i.extras}'>{$i.title}</a>
			</li>
		{/foreach}
	</ul>
	<div id='container'>
		{if isset($pagetitle)}<h1>{$pagetitle}</h1>{/if}
